#include <iostream>
#include <string>

#include "TestNumber.h"
#include "Number.h"

using namespace typl;
using namespace ypl;

void TestNumber::run()
{
    std::cout << "Test Module Number, begin." << std::endl;

    Real pi = 3.1415926535897932384626;
    Real e = 2.718281828459;
    std::string str;
    if (pi == Constants::pi) {
        str = "yes";
    }
    else {
        str = "no";
    }
    std::cout << "Constant pi = " << Constants::pi << ",  " << str << std::endl;


    if (e == Constants::e) {
        str = "yes";
    }
    else {
        str = "no";
    }
    std::cout << "Constant e = " << Constants::e << ",  " << str << std::endl;

    std::cout << "Test Module Number, end." << std::endl;
}

